import React,{ createContext,useState } from 'react'
export const Context = createContext()
import Little from './Little'

function Child() {
    return (
        <div>
            <Little/>
        </div>
    )
}

export default function Ancestor() {
    const [state,setState] = useState('state')
    return (
        <Context.Provider value={{state,setState}}>
            <div>
                <Child/>
            </div>
        </Context.Provider>
    )
}
